let _env = 'development'
// let _env = 'production'

const apiEnv = uni.getStorageSync('apiEnv')

if (!apiEnv) {
  uni.setStorageSync('apiEnv', _env)
} else {
  _env = apiEnv
}

const BASE_URL_OPTIONS = {
  // development: 'http://tiyu.cww.icu/api', // 开发环境
  development: 'https://ttj.geiqiutiyu.com/api', // 正式环境
  production: ''
}

export const env = {
  baseUrl: BASE_URL_OPTIONS[_env]
} 